<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-success" href="#"><i class="icon-edit"></i> 编辑</a>
		<a class="btn btn-danger" href="#"><i class="icon-remove"></i> 删除</a>
	</div>
</div>
<table cellpadding="1" cellspacing="1" class="table table-bordered animate2 fadeInUp">
	<thead>
		<tr class="ui-widget-header">
			<th>车辆名称</th>
			<th>车牌号</th>
			<th>价格</th>
			<th>创建人</th>
			<th>状态</th>
			<th>车辆类型</th>
			<th>创建时间</th>
			<th style="width: 75px;">操作</th>
		</tr>
	</thead>
	<#list pageBean.resultList as vehicle >
	<tr class="ui-widget-content">
		<td>${vehicle.name}</td>
		<td>${vehicle.plate}</td>
		<td>${(vehicle.price)!''}</td>
		<td>${vehicle.cn}</td>
		<td><#if vehicle.status == 1>使用中(${(vehicle.un)!''})<a onclick="javascript: sys_load_handle('vehicle-returnVehicle_${vehicle.code}'); return false;">---归还</a><#elseif vehicle.status == 2>空闲<#elseif vehicle.status == 3>维修中<#elseif vehicle.status == 4>停用</#if></td>
		<td>${vehicle.vtn}</td>
		<td>${vehicle.ct?string("yyyy-MM-dd")}</td>
		<td>
			<div class="btn-group">
			<a class="btn btn-xs btn-success" href="#" onclick="javascript: sys_load_handle('vehicle-edit_${vehicle.code}'); return false;" title="编辑">
				<i class="icon-pencil"></i></a>
			<a class="btn btn-xs btn-danger" href="#" onclick="javascript: delete_Vehicle('${vehicle.code}', '${vehicle.name}'); return false;" title="删除">
				<i class="icon-remove"></i></a>
			</div>
		</td>
	</tr>
	</#list>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'query_Vehicle'/>